function adjustStatisticSize(extra_width, extra_height, aim)
{
    extra_width = parseInt(extra_width);
    if(isNaN(extra_width) || extra_width<1){ extra_width = 0; }
    extra_height = parseInt(extra_height);
    if(isNaN(extra_height) || extra_height<1){ extra_height = 0; }
    var ew = $(window).width() - extra_width;
    var eh = $(window).height() - extra_height;
    if( ! aim){ aim = 'main'; }
    $('#'+aim).css({'width':ew, 'height':eh});
}